<T:ViewBase x:Class="WPFExcelReport.TKDVISIT02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KDVIMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKDVISIT.KDVIMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KDVIKONTAKT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKDVISIT.KDVIKONTAKT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KDVIAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKDVISIT.KDVIAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KDVIAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKDVISIT.KDVIAENB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KDVIAEND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKDVISIT.KDVIAEND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KDVINEUB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKDVISIT.KDVINEUB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KDVINEUD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKDVISIT.KDVINEUD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KDVIBEZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKDVISIT.KDVIBEZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KDVIART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKDVISIT.KDVIART}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KDVIDATVON:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKDVISIT.KDVIDATVON}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KDVIIDATUM:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKDVISIT.KDVIIDATUM}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsKDVISIT,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwKDVISIT}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwKDVISIT, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="KDVIMANDANT"
                                    Binding="{Binding Path=KDVIMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIKONTAKT"
                                    Binding="{Binding Path=KDVIKONTAKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIKONTAKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIAENZL"
                                    Binding="{Binding Path=KDVIAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIAENB"
                                    Binding="{Binding Path=KDVIAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIAEND"
                                    Binding="{Binding Path=KDVIAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVINEUB"
                                    Binding="{Binding Path=KDVINEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVINEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVINEUD"
                                    Binding="{Binding Path=KDVINEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVINEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIBEZ"
                                    Binding="{Binding Path=KDVIBEZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIBEZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIART"
                                    Binding="{Binding Path=KDVIART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIDATVON"
                                    Binding="{Binding Path=KDVIDATVON, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIDATVON}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIIDATUM"
                                    Binding="{Binding Path=KDVIIDATUM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIIDATUM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIUHRVON"
                                    Binding="{Binding Path=KDVIUHRVON, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIUHRVON}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIDATBIS"
                                    Binding="{Binding Path=KDVIDATBIS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIDATBIS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIUHRBIS"
                                    Binding="{Binding Path=KDVIUHRBIS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIUHRBIS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIORT"
                                    Binding="{Binding Path=KDVIORT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIORT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIKUNDNR"
                                    Binding="{Binding Path=KDVIKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIVERTNR"
                                    Binding="{Binding Path=KDVIVERTNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIVERTNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIVB"
                                    Binding="{Binding Path=KDVIVB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIVB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIVG"
                                    Binding="{Binding Path=KDVIVG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIVG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVILAND"
                                    Binding="{Binding Path=KDVILAND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVILAND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIPROJNR"
                                    Binding="{Binding Path=KDVIPROJNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIPROJNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIINIT"
                                    Binding="{Binding Path=KDVIINIT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIINIT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIGRD"
                                    Binding="{Binding Path=KDVIGRD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIGRD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVISTATUS"
                                    Binding="{Binding Path=KDVISTATUS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVISTATUS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIERG"
                                    Binding="{Binding Path=KDVIERG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIERG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIERGGRD"
                                    Binding="{Binding Path=KDVIERGGRD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIERGGRD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIAKTIV"
                                    Binding="{Binding Path=KDVIAKTIV, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIAKTIV}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIKAT1"
                                    Binding="{Binding Path=KDVIKAT1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIKAT1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIKAT2"
                                    Binding="{Binding Path=KDVIKAT2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIKAT2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIKAT3"
                                    Binding="{Binding Path=KDVIKAT3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIKAT3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIKAT4"
                                    Binding="{Binding Path=KDVIKAT4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIKAT4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVITERMIN"
                                    Binding="{Binding Path=KDVITERMIN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVITERMIN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIZEIT"
                                    Binding="{Binding Path=KDVIZEIT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIZEIT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KDVIFILLER"
                                    Binding="{Binding Path=KDVIFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KDVIFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
